<?php
/**
 * Created by PhpStorm.
 * User: xiaoxin
 * Date: 2018/10/29 0029
 * Time: 17:25
 */

namespace app\index\controller;
use app\index\model\Question;
use think\Controller;

class MyPost extends Controller
{
	/**
	 * 我的帖子页面
	 * @return mixed
	 */
	public function index(){
		$ques = Question::where('user_id',session('user_id'))->select();
		$this->assign('ques', $ques);
		$this->assign('title', '我的帖子');
		return $this->fetch();
	}


//	public function allPost(){
//
//	}

}